<template>
  <div style="display: flex;justify-content: space-between;">
    <div
      class="itemBox"
      v-for="(item, index) in itemList"
      :key="index"
      :style="{ 'background-image': `url(${item.img})` }"
    >
      <div class="content">
        <div style="margin-left: 104px;margin-top: 22px;">
          <div class="item-title">{{ item.title }}</div>
          <div class="value-box">
            <div class="item-value">50494</div>
            <div class="item-util">{{ item.unit }}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      itemList: [
        {
          title: "智慧农场数",
          unit: "个",
          img: require(".././../../assets/government/home/zhnc.png"),
        },
        {
          title: "涉农主体数",
          unit: "家",
          img: require(".././../../assets/government/home/snzt.png"),
        },
        {
          title: "地标产品数",
          unit: "个",
          img: require(".././../../assets/government/home/dbcp.png"),
        },
        {
          title: "地域品牌数",
          unit: "个",
          img: require(".././../../assets/government/home/dypp.png"),
        },
        {
          title: "发放补贴金额",
          unit: "万元",
          img: require(".././../../assets/government/home/ffbt.png"),
        },
      ],
      config: {
        number: [9999],
        content: "{nt}",
      },
    };
  },
};
</script>

<style lang="scss" scoped>
.itemBox {
  width: 240px;
  height: 100px;
  color: white;
  background-image: url(".././../../assets/government/home/zhnc.png");
  .item-title {
    font-size: 20px;
    font-weight: bold;
  }
  .item-value {
    color: #00f6ff;
    font-size: 28px;
    font-weight: bold;
  }
  .item-util {
    color: #00f6ff;
    font-size: 18px;
    margin-left: 10px;
  }
  .content {
    display: flex;
    align-items: center;
  }
  .value-box {
    display: flex;
    align-items: center;
    margin-top: 15px;
  }
}
</style>
